package com.hdsx.netty.spring.demo;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;

/**
 * @author 占贤银
 * time 2024/8/15 14:56
 * description 生命之灯因热情而点燃，生命之舟因拼搏而前行
 */
@Component
public class MyApplicationAware implements ApplicationContextAware, InitializingBean {


    @Override
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        System.out.println("2222222222222222222222222");
    }

    @Override
    public void afterPropertiesSet()
    {
        System.out.println("================");
    }
}
